home *** CD-ROM | disk | FTP | other *** search
- Path: globe.indirect.com!snoopy
- From: chrism@xroads.com (Chris McCabe)
- Newsgroups: comp.lang.c++
- Subject: Re: Template function declaration?
- Date: 18 Jan 1996 19:02:09 GMT
- Organization: Internet Direct, Inc.
- Message-ID: <4dlu7t$7a_005@news.indirect.com>
- References: <4d5coq$em1@hemuli.tte.vtt.fi>
- NNTP-Posting-Host: snoopy.infograph.com
- X-Newsreader: News Xpress Version 1.0 Beta #3
-
- In article <4d5coq$em1@hemuli.tte.vtt.fi>,
- Ali Lattunen <Ali.Lattunen@vtt.fi> wrote:
- > How to declare a template function in another module?
-
- Put the template definition in a header file and include
- it in any source file that needs it. The compiler will
- ignore the template definition until it is needed. The linker
- will prevent multiple definitions of the same function.
-
- -Chris
-